<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>flex</title>
    <script src="./data.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        section {
            display: flex;
            overflow: hidden;
            flex-wrap: wrap;
        }

        figure {
            display: block;
            height: 200px;
            flex-grow: 1;
        }

        img {
            height: 100%;
            object-fit: cover;
            max-width: 100%;
            min-width: 100%;
            vertical-align: bottom;
        }
    </style>
</head>
<body>
    <main id="root">
        <section>
            <figure v-for="item in list" :key="item.id">
                <img v-if="item.equalh_url" :src="'http:'+ item.equalh_url" @error="item.equalh_url = ''">
            </figure>
        </section>
    </main>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>
    <script>
       new Vue({
            data: {
                list: data.list
            }
        }).$mount('#root');
    </script>
</body>
</html>